import request from '@/utils/request'

export const channelsList = () => request.get('/app/v1_0/channels')

export const addUserChannels = data => request.patch('/app/v1_0/user/channels', { channels: [data] })

export const delUserChannels = data => request.delete('/app/v1_0/user/channels/' + data)

// import { requisition } from '@/utils/request'

// export const list = data => requisition.get('/v1_1/articles', { params: data })

// export const addUserChannels = data => requisition.patch('/v1_0/user/channels', { channels: [data] })

// export const delUserChannels = data => requisition.delete('/v1_0/user/channels/' + data)
